package com.ss.android.update;

import android.content.Context;
import android.content.DialogInterface;
import com.ss.android.common.dialog.AlertDialog.Builder;

public class SSUpdateChecker implements UpdateChecker {
    private UpdateHelper mUpdateHelper;

    public SSUpdateChecker() {

        this.mUpdateHelper = UpdateHelper.getInstance();
    }

    public final void a(Context context, String arg6, String arg7) {
        if(mUpdateHelper.i()) {
            String v1 = UpdateHelper.a(mUpdateHelper.f());
            n v2 = new n(mUpdateHelper, arg6, context, arg7);
            Builder builder = SSUpdateUtils.getInstance().createDialogBuilder(context);
            builder.setTitle(com.ss.android.article.browser.R.string.update_info)
                    .setMessage(((CharSequence)v1))
                    .setPositiveButton(com.ss.android.article.browser.R.string.label_update, ((DialogInterface.OnClickListener)v2))
                    .setNegativeButton(com.ss.android.article.browser.R.string.cancel, null);
            builder.show();
        }
    }

    public final boolean a() {
        return this.mUpdateHelper.s();
    }

    public final boolean b() {
        return this.mUpdateHelper.i();
    }

    public final boolean c() {
        return this.mUpdateHelper.g();
    }
}

